module.exports = app => {
  const {
    STRING,
    INTEGER
  } = app.Sequelize; //获取数据类型
  const Step = app.model.define('step', {
    id: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true
    },
    desc: {
      type: STRING,
      allowNull: false
    },
    cover: {
      type: STRING(1000),
      allowNull: false
    },
    cook_id: {
      type: INTEGER,
      allowNull: false
    }
  }, {
    freezeTableName: true,
    timestamps: false,
    createdAt: 'create_time',
    updatedAt: 'updated_time',
    deletedAt: false,
    paranoid: false
  })
  return Step
}